<?php 
/**
* 
*/
class SistemasController extends Sgit_Controller_Action
{

    protected $_main_model='Sistemas';
    protected $_main_form='Sistemas';
    protected $_checkZona = TRUE;
    


    public function indexAction()
    {
        $this->_element->TipoSistema=new  Sgit_Form_Element_Select_Xml('TipoSistema');
        $rows = $this->_model->default->getAllByZona($this->_idZona);
        $this->view->rows =$this->_prepareRowsToTr($rows);
    }
	
    public function editarAction()
    {
        $this->_editar();
    }
    
    public function insertarAction()
    {
        $this->_insertar();
    }
    
    public function borrarAction()
    {
        $this->_borrar();
    }
    
    public function _prepareValuesToTr($row)
    {
       $row['carga']=$this->_element->TipoSistema->getMultiOption($row['id_tipo_sistema']);
       

       return $row;
    }


	

	
}


